[nrf noup] boot: zephyr: nrf_cleanup: clean all enabled UARTE instances - #694
Open
cqfmh wants to merge 1 commit into
Open
[nrf noup] boot: zephyr: nrf_cleanup: clean all enabled UARTE instances#694cqfmh wants to merge 1 commit into
cqfmh wants to merge 1 commit into
Conversation
|
none Note: This comment is automatically posted and updated by the Contribs GitHub Action. |
cqfmh
force-pushed
the
nrf91-uarte-cleanup-dt
branch
from
June 20, 2026 08:24
e2a352b to
734b8e0
Compare
The UARTE cleanup list was hardcoded and missed EasyDMA-capable instances on some SoCs, so a UARTE left active by the previous image could keep writing RAM via EasyDMA after chain-load and fault the next image. Derive the list from devicetree (DT_FOREACH_STATUS_OKAY) so every enabled UARTE is quiesced, and stop the TX direction alongside RX before disabling. Signed-off-by: cqfmh <258567898+cqfmh@users.noreply.github.com>
cqfmh
force-pushed
the
nrf91-uarte-cleanup-dt
branch
from
June 20, 2026 08:27
734b8e0 to
4f54848
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Problem
nrf_cleanup_peripheral()'s UARTE list is hardcoded and misses some EasyDMA-capable
instances, so a UARTE left active by the previous image can keep its EasyDMA running
into the next image after chain-load and fault it.
Fix
Build the list from devicetree (DT_FOREACH_STATUS_OKAY(nordic_nrf_uarte, ...)) so every
enabled UARTE is quiesced, and stop the TX direction alongside RX before disabling.
Verified on hardware.